		<g:if test="${issueId}">
			<g:set var="attachmentList" value="${edu.uow.devdocs.Attachment.findAllByIssue(edu.uow.devdocs.Issue.get(issueId)) }"></g:set>
		</g:if>
		<g:if test="${developmentTaskId}">
			<g:set var="attachmentList" value="${edu.uow.devdocs.Attachment.findAllByDevelopmentTask(edu.uow.devdocs.DevelopmentTask.get(developmentTaskId)) }"></g:set>
		</g:if>
		<g:if test="${developmentChecklistId}">
			<g:set var="attachmentList" value="${edu.uow.devdocs.Attachment.findAllByDevelopmentChecklist(edu.uow.devdocs.DevelopmentChecklist.get(developmentChecklistId)) }"></g:set>
		</g:if>
		<table class="sortable">
			<thead>
			<tr>
				<th>Name</th>
				<th>Size</th>
				<th></th>
				<th></th>
			</tr>
			</thead>
			<g:each in="${attachmentList}" status="i" var="attachmentItemInList">
				<tr>
					<td>
						${attachmentItemInList.filename }
					</td>
					<td>
						${attachmentItemInList.filesize }
					</td>	
					<td>
						<g:link controller="attachment" action="getAttachment" id="${ attachmentItemInList.id}"> ${fieldValue(bean: attachmentItemInList, field: "originalFilename")}</g:link>
					</td>
					<td>
						<a href="#tabAttachment" onclick="$('#attachmentList').load('${g.createLink (controller:"attachment",action:"delete",params:['attachmentId':attachmentItemInList.id,'issueId':issueId,'developmentChecklistId':developmentChecklistId,'developmentTaskId':developmentTaskId]) }')">delete</a>
					</td>
				</tr>
				
			</g:each>
			</table>
